/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Actions;

import com.opensymphony.xwork2.ActionSupport;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Bryan
 */
public class SelectAction extends ActionSupport {
    
    private ArrayList products = new ArrayList();
    
    public SelectAction() {
    }
    
    public String execute(){
        setProducts(this.products);
        return "success";
    }

    /**
     * @return the products
     */
    public List getProducts() {
        return products;
    }

    /**
     * @param products the products to set
     */
    public void setProducts(ArrayList products) {
        products.add("SuperMan");
        products.add("ChinaMan");
    }
}
